package com.berte.Demo03getName;

public class DamoGetThreadName {
    public static void main(String[] args) {
        MyThread st = new MyThread();

        st.start(); //开启新线程

        Thread t = Thread.currentThread();
        System.out.println(t.getName());
    }
}
